package com.wenbo.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.springframework.context.annotation.Lazy;

@Entity
@Lazy(value=false)
@Table(name="userinfo")
public class UserInfo extends BasicEntity implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private String userName;
	
	private String password;
	
	private String usersex;
	
	private Integer userage;
	
	private String userimage;
	
	private String userDownlineMessage;
	
	private String state;

	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	@Override
	public Integer getId() {
		return super.getId();
	}

	@Override
	public void setId(Integer id) {
		super.setId(id);
	}

	@Column(name="username")
	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	@Column(name="userpwd")
	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	@Column
	public String getUsersex() {
		return usersex;
	}

	public void setUsersex(String usersex) {
		this.usersex = usersex;
	}

	@Column
	public Integer getUserage() {
		return userage;
	}

	public void setUserage(Integer userage) {
		this.userage = userage;
	}

	@Column
	public String getUserimage() {
		return userimage;
	}

	public void setUserimage(String userimage) {
		this.userimage = userimage;
	}

	@Column(name="userdownlinemsg")
	public String getUserDownlineMessage() {
		return userDownlineMessage;
	}

	public void setUserDownlineMessage(String userDownlineMessage) {
		this.userDownlineMessage = userDownlineMessage;
	}

	@Column(name="userstate")
	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

}
